package com.tianbo.service.imp;

import com.tianbo.mapper.TKpiCargoManifestMapper;
import com.tianbo.model.TKpiCargoManifest;
import com.tianbo.model.TKpiCargoManifestExample;
import com.tianbo.service.ManiFestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Service
public class ManiFestServiceImpl implements ManiFestService {

    @Autowired
    TKpiCargoManifestMapper manifestMapper;

    public List<TKpiCargoManifest> selectByExample(TKpiCargoManifestExample example){
        return  manifestMapper.selectByExample(example);
    }
    public int countByExample(TKpiCargoManifestExample example){
        return manifestMapper.countByExample(example);
    }


    public BigDecimal sumWeightByExample(TKpiCargoManifestExample example){
        return manifestMapper.sumWeightByExample(example);
    }

    public BigDecimal sumPcsByExample(TKpiCargoManifestExample example){
        return manifestMapper.sumPcsByExample(example);
    }

    public BigDecimal sumVolByExample(TKpiCargoManifestExample example){
        return manifestMapper.sumVolByExample(example);
    }
}
